﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RestFulService.pad
{
    //服饰--商品资料
    public class padplu
    {
        /// <summary>
        /// 
        /// </summary>
        public string code { get; set; }
        /// <summary>
        /// 成功
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<MenuCatObject> menuCatList { get; set; }
        
        //结构：菜品大类+菜品小类+菜品
        //普通菜品：
        //服装商品：颜色尺码列表
        public class MenuCatObject
        {

            /// <summary>
            /// 
            /// </summary>
            public string categoryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string categoryName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int categorySort { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string categoryIcon { get; set; }

            /// <summary>
            /// 
            /// </summary>
            public string uncheckedIcon { get; set; }
           /// <summary>
            /// 菜品小类
            /// </summary>
            public List<ChildObject> childList { get; set; }
        }

        //菜品小类
        public class ChildObject
        {
            /// <summary>
            /// 
            /// </summary>
            public string categoryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string categoryName { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string parentCategoryId { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int categorySort { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string categoryIcon { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string uncheckedIcon { get; set; }
            /// <summary>
            /// 菜品列表
            /// </summary>
            public List<pluObject> pluList { get; set; }
        }

        //菜品列表
        public class pluObject
        {
            /// <summary>
            /// 商品编号
            /// </summary>
            public string customerCode { get; set; }
            /// <summary>
            /// 商品条码
            /// </summary>
            public string erpCode { get; set; }
            /// <summary>
            /// 商品名称
            /// </summary>
            public string productName { get; set; }
            /// <summary>
            /// 单位
            /// </summary>
            public string unitName { get; set; }
            /// <summary>
            /// 最终售价
            /// </summary>
            public decimal finalPrice { get; set; }
            /// <summary>
            /// 会员价
            /// </summary>
            public decimal memberPrice { get; set; }
            /// <summary>
            /// 商品大类
            /// </summary>
            public string materialClassIdLarge { get; set; }
            /// <summary>
            /// 商品中类
            /// </summary>
            public string materialClassIdMid { get; set; }
            /// <summary>
            /// 商品小类
            /// </summary>
            public string materialClassIdSmall { get; set; }
            /// <summary>
            ///  可折扣
            /// </summary>
            public int fdiscflag { get; set; }
            /// <summary>
            /// 商品图片
            /// </summary>
            public string picture { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int productSort { get; set; }
            /// <summary>
            /// 商品库存
            /// </summary>
            public int stock { get; set; }
            /// <summary>
            /// 商品类型: 0 普通商品 , 2 套餐商品
            /// </summary>
            public string type { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public int status { get; set; }
            /// <summary>
            /// 商品属性
            /// </summary>
            public string itemdesc { get; set; }
            /// <summary>
            /// 商品条码列表
            /// </summary>
            public List<skuObject> skuList { get; set; }
        }

        //商品条码列表
        public class skuObject
        {
            /// <summary>
            /// 条码
            /// </summary>
            public string skuCode { get; set; }
            /// <summary>
            /// 颜色编号
            /// </summary>
            public string colorid { get; set; }
            /// <summary>
            /// 尺寸编号
            /// </summary>
            public string sizeid { get; set; }
            /// <summary>
            /// 颜色名称
            /// </summary>
            public string colorname { get; set; }
            /// <summary>
            /// 尺寸编号
            /// </summary>
            public string sizename { get; set; }
            /// <summary>
            /// 尺寸名称
            /// </summary>
            public int stock { get; set; }
            /// <summary>
            /// 
            /// </summary>
            public string picture { get; set; }
        }

    }
}
